package com.pks.datacenter.entity.api;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.pks.util.coder.database.DBField;
import com.pks.util.coder.database.DBQuery;
import com.pks.util.coder.database.DBTable;
import com.pks.web.mybatis.entity.BasicEntity;

@Data
@EqualsAndHashCode(callSuper = true)
@DBTable(tags = "接口权限" , index_unique = {"apiUserId,apiId"})
public class ApiPerm extends BasicEntity{
	
	
	private static final long serialVersionUID = -9011710512564696643L;
	
	@DBField(comment = "接口账号ID")
	@DBQuery
	private Long apiUserId;
	
	@DBField(comment = "接口ID")
	@DBQuery
	private Long apiId;
	
	@DBField(name = "queryAll" , comment = "是否查询所有", length = 1 )
	private Integer queryAll ; 	
	
	@DBField(name = "addQuerySql" , comment = "附加接口查询sql" )
	private String addQuerySql ; 			
	
	private ApiMethod show_apiMethod;
	
	@Override
	public void insertBefore() {
		super.insertBefore();
	}
	
}
